#include <stdio.h>
int main(void)
{
    float n1, n2;
    char operator;
    printf("Enter an expression: ");
    scanf("%f", &n1);
    for (;;) {
        operator = getchar();
        if (operator == '\n')
            break;
        scanf("%f", &n2);
        switch (operator)
        {
        case '+':
            n1 += n2;
            break;
        case '-':
            n1 -= n2;
            break;
        case '*':
            n1 *= n2;
            break;
        case '/':
            n1 /= n2;
            break;

        }
    }
    printf("Value of expression: %f\n", n1);
    return 0;
}